package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.DTO.DataPerformanceBO;
import com.ruoyi.framework.web.service.DataDisplayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/data")
public class DataDisplayController extends BaseController {

    @Autowired
    private DataDisplayService dataDisplayService;
    /**
     * 业绩列表
     */
    @PostMapping("/performance")
    public AjaxResult dataPerformance(@RequestBody DataPerformanceBO dataPerformanceBO) {
        return success(dataDisplayService.dataPerformance(dataPerformanceBO));
    }

    /**
     * 数据总览
     */
    @GetMapping("/overview")
    public AjaxResult dataOverview() {
        return success(dataDisplayService.dataOverview());
    }
}
